//
//  Node.h
//  Project
//
//  Created by Nguyen Tan Loc on 8/10/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "CCSprite.h"

typedef enum
{
    NODE_TYPE_HEAD = 0,
    NODE_TYPE_BODY,
    NODE_TYPE_TAIL,
    NODE_TYPE_USER_NODE,
} NODE_TYPE;

typedef enum
{
    NODE_STATE_CONNECT = 0,
    NODE_STATE_CONNECTED,
    NODE_STATE_SPREADING,
    NODE_STATE_SPREADED,
} NODE_STATE;

@interface Node : CCSprite
{
    Node *mNextNode;
    
    NODE_TYPE  mNodeType;
    NODE_STATE mNodeState;
}

-(void) setNodeType:(NODE_TYPE)nodeType;
-(void) setNextNode:(Node *)nextNode;

@end
